package com.dgut.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@TableName("order_flag")
@Data
/**
 * 订单
 */
public class OrderFlag {
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 采买方ID
     */
    private Integer buyerId;

    /**
     * 服务商ID
     */
    private Integer serviceId;

    /**
     * 订单类型（资质证照、知识产权等）
     */
    private String type;

    /**
     * 类型表ID
     */
    private Integer typeId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    /**
     * 完成时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date finishTime;

    /**
     * 状态时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date stateTime;

    /**
     * 金额
     */
    private Double money;

    /**
     * 状态（待指派-待付款-处理中-待审核-待确认-完成 ）
     */
    private String state;

    /**
     * 是否付款
     */
    private String paymentOrNot;

    /**
     * 异常标识（取消中、已取消、正常）
     */
    private String exceptionIdentification;

    public OrderFlag(){

    }
    public OrderFlag(Integer buyerId, Integer serviceId, String type, Integer typeId, Date createTime, Date finishTime, Date stateTime, Double money, String state, String paymentOrNot, String exceptionIdentification) {
        this.buyerId = buyerId;
        this.serviceId = serviceId;
        this.type = type;
        this.typeId = typeId;
        this.createTime = createTime;
        this.finishTime = finishTime;
        this.stateTime = stateTime;
        this.money = money;
        this.state = state;
        this.paymentOrNot = paymentOrNot;
        this.exceptionIdentification = exceptionIdentification;
    }
}
